package com.speedtickets.rest.status;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/health")
public class ApiHealth {

	private static final String API_VERSION = "1.00";
	
	@Path("/status")
	@GET
	@Produces(MediaType.TEXT_HTML)
	public String returnTitle(){
		return "<p>Jersey RESTful Service is online!</p>";
	}
	
	@Path("/version")
	@GET
	@Produces(MediaType.TEXT_HTML)
	public String returnVersion(){
		return "<p>API Current Version " + API_VERSION + "</p>";
	}
	
}
